package com.sj.purchase.modules.cost.views.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;

import java.util.Date;
import java.util.Set;

/**
 * 只記錄銷售和其他出庫
 * Created by yangrd on 2017/11/15
 **/
public class OutOrderVO {

    @Excel(name = "订单编号", width = 35,needMerge = true)
    private String orderNo;
    @Excel(name = "订单类型", width = 35,needMerge = true)
    private String orderType;//銷售和其他(需要轉換)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @Excel(name = "出库时间", width = 35,needMerge = true)
    private Date createDate;
    @Excel(name = "卖家店铺", width = 35,needMerge = true)
    private String shopName;//店铺
    @Excel(name = "买家旺旺号", width = 35,needMerge = true)
    private String buyerName;//买家姓名
    @Excel(name = "订单支付金额", width = 35,needMerge = true)
    private Double payment;//销售价（实际付款价格）
    @Excel(name = "订单成本价(系统)", width = 35,needMerge = true)
    private Double costPrice;//成本價(需要計算)
    @Excel(name = "订单利润", width = 35,needMerge = true)
    private Double profit;//利潤(需要計算)

    @ExcelCollection(name="明细")
    private Set<OutOrderItemVO> orderItems;

    public String getOrderNo() {
        return orderNo;
    }

    public OutOrderVO setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public String getOrderType() {
        return orderType;
    }

    public OutOrderVO setOrderType(String orderType) {
        this.orderType = orderType;
        return this;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public OutOrderVO setCreateDate(Date createDate) {
        this.createDate = createDate;
        return this;
    }

    public String getShopName() {
        return shopName;
    }

    public OutOrderVO setShopName(String shopName) {
        this.shopName = shopName;
        return this;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public OutOrderVO setBuyerName(String buyerName) {
        this.buyerName = buyerName;
        return this;
    }

    public Double getPayment() {
        return payment;
    }

    public OutOrderVO setPayment(Double payment) {
        this.payment = payment;
        return this;
    }

    public Double getCostPrice() {
        return costPrice;
    }

    public OutOrderVO setCostPrice(Double costPrice) {
        this.costPrice = costPrice;
        return this;
    }

    public Double getProfit() {
        return profit;
    }

    public OutOrderVO setProfit(Double profit) {
        this.profit = profit;
        return this;
    }

    public Set<OutOrderItemVO> getOrderItems() {
        return orderItems;
    }

    public OutOrderVO setOrderItems(Set<OutOrderItemVO> orderItems) {
        this.orderItems = orderItems;
        return this;
    }
}
